//
//  UIView+Shadow.h
//  QNReuseTool
//
//  Created by rsh on 2019/10/15.
//  Copyright © 2019年 rsh. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Shadow)

-(void)addShadow;

-(void)removeShadow;

-(void)addShadowToEdge:(UIRectEdge)edge;


@property(nonatomic,strong)CALayer *shadowLayer;

/**
 addShadowToClippedView
 */
-(void)addShadowToClippedViewToEdge:(UIRectEdge)edge;

/**
addShadowToEdge

@param edge edge
@param cColor cColor
@param opacity opacity
@param radius radius
@param sizeOffset sizeOffset
*/
-(void)addShadowToClippedViewToEdge:(UIRectEdge)edge
                              color:(nonnull CGColorRef)cColor
                            opacity:(CGFloat)opacity
                       shadowRadius:(CGFloat)radius
                       shadowOffset:(CGSize)sizeOffset;

/**
 addShadowToEdge
 
 @param edge edge descriptionedge
 @param cColor cColor
 */
-(void)addShadowToClippedViewToEdge:(UIRectEdge)edge
                              color:(nonnull CGColorRef)cColor;


/**
 addShadowToEdge
 
 @param edge edge
 @param opacity opacity
 */
-(void)addShadowToClippedViewToEdge:(UIRectEdge)edge
                            opacity:(CGFloat)opacity;


/**
 addShadowToEdge
 
 @param edge edge
 @param radius radius
 */
-(void)addShadowToClippedViewToEdge:(UIRectEdge)edge
                       shadowRadius:(CGFloat)radius;


/**
 addShadowToEdge
 
 @param edge edge
 @param sizeOffset sizeOffset
 */
-(void)addShadowToClippedViewToEdge:(UIRectEdge)edge
                       shadowOffset:(CGSize)sizeOffset;



@end
